package ru.mipt.sport.gui.model;

import java.util.List;
import ru.mipt.sport.model.interfaces.CompetitionSport;
import ru.mipt.sport.model.interfaces.CompetitionStage;

/**
 *
 * @author danon
 */
public class FullCompetitionSport {
    
    private CompetitionSport sport;
    private List<CompetitionStage> stages;

    public FullCompetitionSport() {
    }

    public FullCompetitionSport(CompetitionSport sport, List<CompetitionStage> stages) {
        this.sport = sport;
        this.stages = stages;
    }

    public CompetitionSport getSport() {
        return sport;
    }

    public void setSport(CompetitionSport sport) {
        this.sport = sport;
    }

    public List<CompetitionStage> getStages() {
        return stages;
    }

    public void setStages(List<CompetitionStage> stages) {
        this.stages = stages;
    }

    @Override
    public String toString() {
        return sport==null ? "(untitled)" : sport.getName();
    }
    
    
}
